﻿using AccesoDatos;
using Entidades;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LogicaNegocio
{
    public class LNGuia
    {
        public List<ENGuiaSearch> BuscarPeru(ENGuia objBE)
        {
            try
            {
                return (new ADGuia()).BuscarPeru(objBE);
            }
            catch (Exception)
            {
                throw;
            }
        }

        public ENGuiaData Guia(int ID)
        {
            try
            {
                return (new ADGuia()).Guia(ID);
            }
            catch (Exception)
            {
                throw;
            }
        }

        public List<ENGuiaFiles> Files(int intID)
        {
            try
            {
                return (new ADGuia()).Files(intID);
            }
            catch (Exception)
            {
                throw;
            }
        }

        public bool DeleteFile(int intID)
        {
            try
            {
                return (new ADGuia()).DeleteFile(intID);
            }
            catch (Exception)
            {
                throw;
            }
        }

        public bool CreateFile(int intGuia, string strFile)
        {
            try
            {
                return (new ADGuia()).CreateFile(intGuia, strFile);
            }
            catch (Exception)
            {
                throw;
            }
        }
    }
}
